<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Scene Text Detection</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Scene Text Detection<div class="ingroups"><a class="el" href="../../d4/d61/group__text.html">Scene Text Detection and Recognition</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">cv::text::ERFilter</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>. :  <a href="../../da/def/classcv_1_1text_1_1ERFilter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html">cv::text::ERStat</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html" title="The ERStat structure represents a class-specific Extremal Region (ER). ">ERStat</a> structure represents a class-specific Extremal Region (ER).  <a href="../../db/d20/structcv_1_1text_1_1ERStat.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d25/classcv_1_1text_1_1TextDetector.html">cv::text::TextDetector</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">An abstract class providing interface for text detection algorithms.  <a href="../../de/d25/classcv_1_1text_1_1TextDetector.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d66/classcv_1_1text_1_1TextDetectorCNN.html">cv::text::TextDetectorCNN</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../d1/d66/classcv_1_1text_1_1TextDetectorCNN.html" title="TextDetectorCNN class provides the functionallity of text bounding box detection. This class is repre...">TextDetectorCNN</a> class provides the functionallity of text bounding box detection. This class is representing to find bounding boxes of text words given an input image. This class uses OpenCV dnn module to load pre-trained model described in <a class="el" href="../../d0/de3/citelist.html#CITEREF_LiaoSBWL17">[147]</a>. The original repository with the modified SSD Caffe version: <a href="https://github.com/MhLiao/TextBoxes">https://github.com/MhLiao/TextBoxes</a>. Model can be downloaded from <a href="https://www.dropbox.com/s/g8pjzv2de9gty8g/TextBoxes_icdar13.caffemodel?dl=0">DropBox</a>. Modified .prototxt file with the model description can be found in <code>opencv_contrib/modules/text/samples/textbox.prototxt</code>.  <a href="../../d1/d66/classcv_1_1text_1_1TextDetectorCNN.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga4393eddae65e48ed93934c409bd99126"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <br/>
  <a class="el" href="../../da/d56/group__text__detect.html#gga4393eddae65e48ed93934c409bd99126a79e06bd9ad5b17411581ac430f805e66">cv::text::ERFILTER_NM_RGBLGrad</a>, 
<br/>
  <a class="el" href="../../da/d56/group__text__detect.html#gga4393eddae65e48ed93934c409bd99126a00b4e765bdc40567ad70beb7df464e06">cv::text::ERFILTER_NM_IHSGrad</a>
<br/>
 }<tr class="memdesc:ga4393eddae65e48ed93934c409bd99126"><td class="mdescLeft"> </td><td class="mdescRight">computeNMChannels operation modes  <a href="../../da/d56/group__text__detect.html#ga4393eddae65e48ed93934c409bd99126">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga4393eddae65e48ed93934c409bd99126"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac71e4c8addcf8f6dabc9b6da401d5eb9"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#gac71e4c8addcf8f6dabc9b6da401d5eb9">cv::text::erGrouping_Modes</a> { <br/>
  <a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">cv::text::ERGROUPING_ORIENTATION_HORIZ</a>, 
<br/>
  <a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9aa88b048d788f8f61bcec6c478078e3c4">cv::text::ERGROUPING_ORIENTATION_ANY</a>
<br/>
 }<tr class="memdesc:gac71e4c8addcf8f6dabc9b6da401d5eb9"><td class="mdescLeft"> </td><td class="mdescRight">text::erGrouping operation modes  <a href="../../da/d56/group__text__detect.html#gac71e4c8addcf8f6dabc9b6da401d5eb9">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gac71e4c8addcf8f6dabc9b6da401d5eb9"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga23fdd9364be7b67d104f814dd679fcde"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga23fdd9364be7b67d104f814dd679fcde">cv::text::computeNMChannels</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> _src, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> _channels, int _mode=<a class="el" href="../../da/d56/group__text__detect.html#gga4393eddae65e48ed93934c409bd99126a79e06bd9ad5b17411581ac430f805e66">ERFILTER_NM_RGBLGrad</a>)</td></tr>
<tr class="memdesc:ga23fdd9364be7b67d104f814dd679fcde"><td class="mdescLeft"> </td><td class="mdescRight">Compute the different channels to be processed independently in the N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>.  <a href="../../da/d56/group__text__detect.html#ga23fdd9364be7b67d104f814dd679fcde">More...</a><br/></td></tr>
<tr class="separator:ga23fdd9364be7b67d104f814dd679fcde"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga34e6b32cc3db805155ab51dcd7bc61d5"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga34e6b32cc3db805155ab51dcd7bc61d5">cv::text::createERFilterNM1</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a> &gt; &amp;cb, int thresholdDelta=1, float minArea=(float) 0.00025, float maxArea=(float) 0.13, float minProbability=(float) 0.4, bool nonMaxSuppression=true, float minProbabilityDiff=(float) 0.1)</td></tr>
<tr class="memdesc:ga34e6b32cc3db805155ab51dcd7bc61d5"><td class="mdescLeft"> </td><td class="mdescRight">Create an Extremal Region Filter for the 1st stage classifier of N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>.  <a href="../../da/d56/group__text__detect.html#ga34e6b32cc3db805155ab51dcd7bc61d5">More...</a><br/></td></tr>
<tr class="separator:ga34e6b32cc3db805155ab51dcd7bc61d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad0dbf50d68acbacfbe466c4bc31cdcd2"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#gad0dbf50d68acbacfbe466c4bc31cdcd2">cv::text::createERFilterNM1</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int thresholdDelta=1, float minArea=(float) 0.00025, float maxArea=(float) 0.13, float minProbability=(float) 0.4, bool nonMaxSuppression=true, float minProbabilityDiff=(float) 0.1)</td></tr>
<tr class="memdesc:gad0dbf50d68acbacfbe466c4bc31cdcd2"><td class="mdescLeft"> </td><td class="mdescRight">Reads an Extremal Region Filter for the 1st stage classifier of N&amp;M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM1.xml.  <a href="../../da/d56/group__text__detect.html#gad0dbf50d68acbacfbe466c4bc31cdcd2">More...</a><br/></td></tr>
<tr class="separator:gad0dbf50d68acbacfbe466c4bc31cdcd2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga00f010f5b65cc60d1290a76807d39c95"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga00f010f5b65cc60d1290a76807d39c95">cv::text::createERFilterNM2</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a> &gt; &amp;cb, float minProbability=(float) 0.3)</td></tr>
<tr class="memdesc:ga00f010f5b65cc60d1290a76807d39c95"><td class="mdescLeft"> </td><td class="mdescRight">Create an Extremal Region Filter for the 2nd stage classifier of N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>.  <a href="../../da/d56/group__text__detect.html#ga00f010f5b65cc60d1290a76807d39c95">More...</a><br/></td></tr>
<tr class="separator:ga00f010f5b65cc60d1290a76807d39c95"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga56f17c714f8403ef00b02022eeebb8a2"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga56f17c714f8403ef00b02022eeebb8a2">cv::text::createERFilterNM2</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, float minProbability=(float) 0.3)</td></tr>
<tr class="memdesc:ga56f17c714f8403ef00b02022eeebb8a2"><td class="mdescLeft"> </td><td class="mdescRight">Reads an Extremal Region Filter for the 2nd stage classifier of N&amp;M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM2.xml.  <a href="../../da/d56/group__text__detect.html#ga56f17c714f8403ef00b02022eeebb8a2">More...</a><br/></td></tr>
<tr class="separator:ga56f17c714f8403ef00b02022eeebb8a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac4abe0243775e0d1a871a7d85fde0198"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#gac4abe0243775e0d1a871a7d85fde0198">cv::text::detectRegions</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp;er_filter1, const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp;er_filter2, std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &gt; &amp;regions)</td></tr>
<tr class="separator:gac4abe0243775e0d1a871a7d85fde0198"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacead6485d0966726892094fc4aaf9dc6"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#gacead6485d0966726892094fc4aaf9dc6">cv::text::detectRegions</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp;er_filter1, const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp;er_filter2, std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp;groups_rects, int method=<a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">ERGROUPING_ORIENTATION_HORIZ</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>(), float minProbability=(float) 0.5)</td></tr>
<tr class="memdesc:gacead6485d0966726892094fc4aaf9dc6"><td class="mdescLeft"> </td><td class="mdescRight">Extracts text regions from image.  <a href="../../da/d56/group__text__detect.html#gacead6485d0966726892094fc4aaf9dc6">More...</a><br/></td></tr>
<tr class="separator:gacead6485d0966726892094fc4aaf9dc6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6299380bbb9141488220bdee62b62cd1"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga6299380bbb9141488220bdee62b62cd1">cv::text::erGrouping</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> channels, std::vector&lt; std::vector&lt; <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html">ERStat</a> &gt; &gt; &amp;regions, std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga121402b88177c336b18945dd71d96ae0">Vec2i</a> &gt; &gt; &amp;groups, std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp;groups_rects, int method=<a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">ERGROUPING_ORIENTATION_HORIZ</a>, const std::string &amp;filename=std::string(), float minProbablity=0.5)</td></tr>
<tr class="memdesc:ga6299380bbb9141488220bdee62b62cd1"><td class="mdescLeft"> </td><td class="mdescRight">Find groups of Extremal Regions that are organized as text blocks.  <a href="../../da/d56/group__text__detect.html#ga6299380bbb9141488220bdee62b62cd1">More...</a><br/></td></tr>
<tr class="separator:ga6299380bbb9141488220bdee62b62cd1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga807dea4f63f6e2b59c9ac22d35e23926"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga807dea4f63f6e2b59c9ac22d35e23926">cv::text::erGrouping</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> channel, std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &gt; regions, std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp;groups_rects, int method=<a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">ERGROUPING_ORIENTATION_HORIZ</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>(), float minProbablity=(float) 0.5)</td></tr>
<tr class="separator:ga807dea4f63f6e2b59c9ac22d35e23926"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8a0e90a70de747b993be34ed7933ef53"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga8a0e90a70de747b993be34ed7933ef53">cv::text::loadClassifierNM1</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename)</td></tr>
<tr class="memdesc:ga8a0e90a70de747b993be34ed7933ef53"><td class="mdescLeft"> </td><td class="mdescRight">Allow to implicitly load the default classifier when creating an <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html" title="Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm ...">ERFilter</a> object.  <a href="../../da/d56/group__text__detect.html#ga8a0e90a70de747b993be34ed7933ef53">More...</a><br/></td></tr>
<tr class="separator:ga8a0e90a70de747b993be34ed7933ef53"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7a7555ebd0850765e1cb09d322235cf8"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#ga7a7555ebd0850765e1cb09d322235cf8">cv::text::loadClassifierNM2</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename)</td></tr>
<tr class="memdesc:ga7a7555ebd0850765e1cb09d322235cf8"><td class="mdescLeft"> </td><td class="mdescRight">Allow to implicitly load the default classifier when creating an <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html" title="Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm ...">ERFilter</a> object.  <a href="../../da/d56/group__text__detect.html#ga7a7555ebd0850765e1cb09d322235cf8">More...</a><br/></td></tr>
<tr class="separator:ga7a7555ebd0850765e1cb09d322235cf8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa40b490a66fa21eb1d89163202f69c86"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d56/group__text__detect.html#gaa40b490a66fa21eb1d89163202f69c86">cv::text::MSERsToERStats</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &gt; &amp;contours, std::vector&lt; std::vector&lt; <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html">ERStat</a> &gt; &gt; &amp;regions)</td></tr>
<tr class="memdesc:gaa40b490a66fa21eb1d89163202f69c86"><td class="mdescLeft"> </td><td class="mdescRight">Converts <a class="el" href="../../d3/d28/classcv_1_1MSER.html" title="Maximally stable extremal region extractor. ">MSER</a> contours (vector&lt;Point&gt;) to <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html" title="The ERStat structure represents a class-specific Extremal Region (ER). ">ERStat</a> regions.  <a href="../../da/d56/group__text__detect.html#gaa40b490a66fa21eb1d89163202f69c86">More...</a><br/></td></tr>
<tr class="separator:gaa40b490a66fa21eb1d89163202f69c86"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2>Class-specific Extremal Regions for Scene Text Detection </h2>
<p>The scene text detection algorithm described below has been initially proposed by Lukás Neumann &amp; Jiri Matas <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann11">[182]</a>. The main idea behind Class-specific Extremal Regions is similar to the <a class="el" href="../../d3/d28/classcv_1_1MSER.html" title="Maximally stable extremal region extractor. ">MSER</a> in that suitable Extremal Regions (ERs) are selected from the whole component tree of the image. However, this technique differs from <a class="el" href="../../d3/d28/classcv_1_1MSER.html" title="Maximally stable extremal region extractor. ">MSER</a> in that selection of suitable ERs is done by a sequential classifier trained for character detection, i.e. dropping the stability requirement of MSERs and selecting class-specific (not necessarily stable) regions.</p>
<p>The component tree of an image is constructed by thresholding by an increasing value step-by-step from 0 to 255 and then linking the obtained connected components from successive levels in a hierarchy by their inclusion relation:</p>
<div class="image">
<img alt="component_tree.png" src="../../component_tree.png"/>
<div class="caption">
image</div></div>
<p> The component tree may contain a huge number of regions even for a very simple image as shown in the previous image. This number can easily reach the order of 1 x 10\^6 regions for an average 1 Megapixel image. In order to efficiently select suitable regions among all the ERs the algorithm make use of a sequential classifier with two differentiated stages.</p>
<p>In the first stage incrementally computable descriptors (area, perimeter, bounding box, and Euler's number) are computed (in O(1)) for each region r and used as features for a classifier which estimates the class-conditional probability p(r|character). Only the ERs which correspond to local maximum of the probability p(r|character) are selected (if their probability is above a global limit p_min and the difference between local maximum and local minimum is greater than a delta_min value).</p>
<p>In the second stage, the ERs that passed the first stage are classified into character and non-character classes using more informative but also more computationally expensive features. (Hole area ratio, convex hull ratio, and the number of outer boundary inflexion points).</p>
<p>This ER filtering process is done in different single-channel projections of the input image in order to increase the character localization recall.</p>
<p>After the ER filtering is done on each input channel, character candidates must be grouped in high-level text blocks (i.e. words, text lines, paragraphs, ...). The opencv_text module implements two different grouping algorithms: the Exhaustive Search algorithm proposed in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a> for grouping horizontally aligned text, and the method proposed by Lluis Gomez and Dimosthenis Karatzas in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Gomez13">[93]</a> <a class="el" href="../../d0/de3/citelist.html#CITEREF_Gomez14">[118]</a> for grouping arbitrary oriented text (see erGrouping).</p>
<p>To see the text detector at work, have a look at the textdetection demo: <a href="https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/textdetection.cpp">https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/textdetection.cpp</a> </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga4393eddae65e48ed93934c409bd99126"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4393eddae65e48ed93934c409bd99126">◆ </a></span>anonymous enum</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>computeNMChannels operation modes </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga4393eddae65e48ed93934c409bd99126a79e06bd9ad5b17411581ac430f805e66"></a>ERFILTER_NM_RGBLGrad <div class="python_language">Python: cv.text.ERFILTER_NM_RGBLGrad</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga4393eddae65e48ed93934c409bd99126a00b4e765bdc40567ad70beb7df464e06"></a>ERFILTER_NM_IHSGrad <div class="python_language">Python: cv.text.ERFILTER_NM_IHSGrad</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="gac71e4c8addcf8f6dabc9b6da401d5eb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac71e4c8addcf8f6dabc9b6da401d5eb9">◆ </a></span>erGrouping_Modes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../da/d56/group__text__detect.html#gac71e4c8addcf8f6dabc9b6da401d5eb9">cv::text::erGrouping_Modes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p><a class="el" href="../../da/d56/group__text__detect.html#ga6299380bbb9141488220bdee62b62cd1" title="Find groups of Extremal Regions that are organized as text blocks. ">text::erGrouping</a> operation modes </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62"></a>ERGROUPING_ORIENTATION_HORIZ <div class="python_language">Python: cv.text.ERGROUPING_ORIENTATION_HORIZ</div></td><td class="fielddoc"><p>Exhaustive Search algorithm proposed in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann11">[182]</a> for grouping horizontally aligned text. The algorithm models a verification function for all the possible ER sequences. The verification fuction for ER pairs consists in a set of threshold-based pairwise rules which compare measurements of two regions (height ratio, centroid angle, and region distance). The verification function for ER triplets creates a word text line estimate using Least Median-Squares fitting for a given triplet and then verifies that the estimate is valid (based on thresholds created during training). Verification functions for sequences larger than 3 are approximated by verifying that the text line parameters of all (sub)sequences of length 3 are consistent. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggac71e4c8addcf8f6dabc9b6da401d5eb9aa88b048d788f8f61bcec6c478078e3c4"></a>ERGROUPING_ORIENTATION_ANY <div class="python_language">Python: cv.text.ERGROUPING_ORIENTATION_ANY</div></td><td class="fielddoc"><p>Text grouping method proposed in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Gomez13">[93]</a> <a class="el" href="../../d0/de3/citelist.html#CITEREF_Gomez14">[118]</a> for grouping arbitrary oriented text. Regions are agglomerated by Single Linkage Clustering in a weighted feature space that combines proximity (x,y coordinates) and similarity measures (color, size, gradient magnitude, stroke width, etc.). SLC provides a dendrogram where each node represents a text group hypothesis. Then the algorithm finds the branches corresponding to text groups by traversing this dendrogram with a stopping rule that combines the output of a rotation invariant text group classifier and a probabilistic measure for hierarchical clustering validity assessment.</p>
<dl class="section note"><dt>Note</dt><dd>This mode is not supported due NFA code removal ( <a href="https://github.com/opencv/opencv_contrib/issues/2235">https://github.com/opencv/opencv_contrib/issues/2235</a> ) </dd></dl>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga23fdd9364be7b67d104f814dd679fcde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga23fdd9364be7b67d104f814dd679fcde">◆ </a></span>computeNMChannels()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::text::computeNMChannels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>_src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>_channels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_mode</em> = <code><a class="el" href="../../da/d56/group__text__detect.html#gga4393eddae65e48ed93934c409bd99126a79e06bd9ad5b17411581ac430f805e66">ERFILTER_NM_RGBLGrad</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>_channels</td><td>=</td><td>cv.text.computeNMChannels(</td><td class="paramname">_src[, _channels[, _mode]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Compute the different channels to be processed independently in the N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_src</td><td>Source image. Must be RGB CV_8UC3.</td></tr>
    <tr><td class="paramname">_channels</td><td>Output vector&lt;<a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">Mat</a>&gt; where computed channels are stored.</td></tr>
    <tr><td class="paramname">_mode</td><td>Mode of operation. Currently the only available options are: ERFILTER_NM_RGBLGrad** (used by default) and <b>ERFILTER_NM_IHSGrad</b>.</td></tr>
  </table>
  </dd>
</dl>
<p>In N&amp;M algorithm, the combination of intensity (I), hue (H), saturation (S), and gradient magnitude channels (Grad) are used in order to obtain high localization recall. This implementation also provides an alternative combination of red (R), green (G), blue (B), lightness (L), and gradient magnitude (Grad). </p>
</div>
</div>
<a id="ga34e6b32cc3db805155ab51dcd7bc61d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga34e6b32cc3db805155ab51dcd7bc61d5">◆ </a></span>createERFilterNM1() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a>&gt; cv::text::createERFilterNM1 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a> &gt; &amp; </td>
          <td class="paramname"><em>cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thresholdDelta</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minArea</em> = <code>(float) 0.00025</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>maxArea</em> = <code>(float) 0.13</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbability</em> = <code>(float) 0.4</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>nonMaxSuppression</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbabilityDiff</em> = <code>(float) 0.1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM1(</td><td class="paramname">cb[, thresholdDelta[, minArea[, maxArea[, minProbability[, nonMaxSuppression[, minProbabilityDiff]]]]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM1(</td><td class="paramname">filename[, thresholdDelta[, minArea[, maxArea[, minProbability[, nonMaxSuppression[, minProbabilityDiff]]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Create an Extremal Region Filter for the 1st stage classifier of N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cb</td><td>: Callback with the classifier. Default classifier can be implicitly load with function loadClassifierNM1, e.g. from file in samples/cpp/trained_classifierNM1.xml </td></tr>
    <tr><td class="paramname">thresholdDelta</td><td>: Threshold step in subsequent thresholds when extracting the component tree </td></tr>
    <tr><td class="paramname">minArea</td><td>: The minimum area (% of image size) allowed for retreived ER's </td></tr>
    <tr><td class="paramname">maxArea</td><td>: The maximum area (% of image size) allowed for retreived ER's </td></tr>
    <tr><td class="paramname">minProbability</td><td>: The minimum probability P(er|character) allowed for retreived ER's </td></tr>
    <tr><td class="paramname">nonMaxSuppression</td><td>: Whenever non-maximum suppression is done over the branch probabilities </td></tr>
    <tr><td class="paramname">minProbabilityDiff</td><td>: The minimum probability difference between local maxima and local minima ERs</td></tr>
  </table>
  </dd>
</dl>
<p>The component tree of the image is extracted by a threshold increased step by step from 0 to 255, incrementally computable descriptors (aspect_ratio, compactness, number of holes, and number of horizontal crossings) are computed for each ER and used as features for a classifier which estimates the class-conditional probability P(er|character). The value of P(er|character) is tracked using the inclusion relation of ER across all thresholds and only the ERs which correspond to local maximum of the probability P(er|character) are selected (if the local maximum of the probability is above a global limit pmin and the difference between local maximum and local minimum is greater than minProbabilityDiff). </p>
</div>
</div>
<a id="gad0dbf50d68acbacfbe466c4bc31cdcd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad0dbf50d68acbacfbe466c4bc31cdcd2">◆ </a></span>createERFilterNM1() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a>&gt; cv::text::createERFilterNM1 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thresholdDelta</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minArea</em> = <code>(float) 0.00025</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>maxArea</em> = <code>(float) 0.13</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbability</em> = <code>(float) 0.4</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>nonMaxSuppression</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbabilityDiff</em> = <code>(float) 0.1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM1(</td><td class="paramname">cb[, thresholdDelta[, minArea[, maxArea[, minProbability[, nonMaxSuppression[, minProbabilityDiff]]]]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM1(</td><td class="paramname">filename[, thresholdDelta[, minArea[, maxArea[, minProbability[, nonMaxSuppression[, minProbabilityDiff]]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Reads an Extremal Region Filter for the 1st stage classifier of N&amp;M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM1.xml. </p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="ga00f010f5b65cc60d1290a76807d39c95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga00f010f5b65cc60d1290a76807d39c95">◆ </a></span>createERFilterNM2() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a>&gt; cv::text::createERFilterNM2 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a> &gt; &amp; </td>
          <td class="paramname"><em>cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbability</em> = <code>(float) 0.3</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM2(</td><td class="paramname">cb[, minProbability]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM2(</td><td class="paramname">filename[, minProbability]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Create an Extremal Region Filter for the 2nd stage classifier of N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cb</td><td>: Callback with the classifier. Default classifier can be implicitly load with function loadClassifierNM2, e.g. from file in samples/cpp/trained_classifierNM2.xml </td></tr>
    <tr><td class="paramname">minProbability</td><td>: The minimum probability P(er|character) allowed for retreived ER's</td></tr>
  </table>
  </dd>
</dl>
<p>In the second stage, the ERs that passed the first stage are classified into character and non-character classes using more informative but also more computationally expensive features. The classifier uses all the features calculated in the first stage and the following additional features: hole area ratio, convex hull ratio, and number of outer inflexion points. </p>
</div>
</div>
<a id="ga56f17c714f8403ef00b02022eeebb8a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga56f17c714f8403ef00b02022eeebb8a2">◆ </a></span>createERFilterNM2() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a>&gt; cv::text::createERFilterNM2 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbability</em> = <code>(float) 0.3</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM2(</td><td class="paramname">cb[, minProbability]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.createERFilterNM2(</td><td class="paramname">filename[, minProbability]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Reads an Extremal Region Filter for the 2nd stage classifier of N&amp;M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM2.xml. </p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="gac4abe0243775e0d1a871a7d85fde0198"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac4abe0243775e0d1a871a7d85fde0198">◆ </a></span>detectRegions() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::text::detectRegions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp; </td>
          <td class="paramname"><em>er_filter1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp; </td>
          <td class="paramname"><em>er_filter2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>regions</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>regions</td><td>=</td><td>cv.text.detectRegions(</td><td class="paramname">image, er_filter1, er_filter2</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>groups_rects</td><td>=</td><td>cv.text.detectRegions(</td><td class="paramname">image, er_filter1, er_filter2[, method[, filename[, minProbability]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
</div>
</div>
<a id="gacead6485d0966726892094fc4aaf9dc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacead6485d0966726892094fc4aaf9dc6">◆ </a></span>detectRegions() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::text::detectRegions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp; </td>
          <td class="paramname"><em>er_filter1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html">ERFilter</a> &gt; &amp; </td>
          <td class="paramname"><em>er_filter2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp; </td>
          <td class="paramname"><em>groups_rects</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>method</em> = <code><a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">ERGROUPING_ORIENTATION_HORIZ</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbability</em> = <code>(float) 0.5</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>regions</td><td>=</td><td>cv.text.detectRegions(</td><td class="paramname">image, er_filter1, er_filter2</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>groups_rects</td><td>=</td><td>cv.text.detectRegions(</td><td class="paramname">image, er_filter1, er_filter2[, method[, filename[, minProbability]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Extracts text regions from image. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Source image where text blocks needs to be extracted from. Should be CV_8UC3 (color). </td></tr>
    <tr><td class="paramname">er_filter1</td><td>Extremal Region Filter for the 1st stage classifier of N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a> </td></tr>
    <tr><td class="paramname">er_filter2</td><td>Extremal Region Filter for the 2nd stage classifier of N&amp;M algorithm <a class="el" href="../../d0/de3/citelist.html#CITEREF_Neumann12">[183]</a> </td></tr>
    <tr><td class="paramname">groups_rects</td><td>Output list of rectangle blocks with text </td></tr>
    <tr><td class="paramname">method</td><td>Grouping method (see <a class="el" href="../../da/d56/group__text__detect.html#gac71e4c8addcf8f6dabc9b6da401d5eb9" title="text::erGrouping operation modes ">text::erGrouping_Modes</a>). Can be one of ERGROUPING_ORIENTATION_HORIZ, ERGROUPING_ORIENTATION_ANY. </td></tr>
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. samples/trained_classifier_erGrouping.xml). Only to use when grouping method is ERGROUPING_ORIENTATION_ANY. </td></tr>
    <tr><td class="paramname">minProbability</td><td>The minimum probability for accepting a group. Only to use when grouping method is ERGROUPING_ORIENTATION_ANY. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga6299380bbb9141488220bdee62b62cd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6299380bbb9141488220bdee62b62cd1">◆ </a></span>erGrouping() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::text::erGrouping </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>channels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html">ERStat</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>regions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga121402b88177c336b18945dd71d96ae0">Vec2i</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>groups</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp; </td>
          <td class="paramname"><em>groups_rects</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>method</em> = <code><a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">ERGROUPING_ORIENTATION_HORIZ</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp; </td>
          <td class="paramname"><em>filename</em> = <code>std::string()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbablity</em> = <code>0.5</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>groups_rects</td><td>=</td><td>cv.text.erGrouping(</td><td class="paramname">image, channel, regions[, method[, filename[, minProbablity]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Find groups of Extremal Regions that are organized as text blocks. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Original RGB or Greyscale image from wich the regions were extracted.</td></tr>
    <tr><td class="paramname">channels</td><td>Vector of single channel images CV_8UC1 from wich the regions were extracted.</td></tr>
    <tr><td class="paramname">regions</td><td>Vector of ER's retrieved from the <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html" title="Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm ...">ERFilter</a> algorithm from each channel.</td></tr>
    <tr><td class="paramname">groups</td><td>The output of the algorithm is stored in this parameter as set of lists of indexes to provided regions.</td></tr>
    <tr><td class="paramname">groups_rects</td><td>The output of the algorithm are stored in this parameter as list of rectangles.</td></tr>
    <tr><td class="paramname">method</td><td>Grouping method (see <a class="el" href="../../da/d56/group__text__detect.html#gac71e4c8addcf8f6dabc9b6da401d5eb9" title="text::erGrouping operation modes ">text::erGrouping_Modes</a>). Can be one of ERGROUPING_ORIENTATION_HORIZ, ERGROUPING_ORIENTATION_ANY.</td></tr>
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. samples/trained_classifier_erGrouping.xml). Only to use when grouping method is ERGROUPING_ORIENTATION_ANY.</td></tr>
    <tr><td class="paramname">minProbablity</td><td>The minimum probability for accepting a group. Only to use when grouping method is ERGROUPING_ORIENTATION_ANY. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga807dea4f63f6e2b59c9ac22d35e23926"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga807dea4f63f6e2b59c9ac22d35e23926">◆ </a></span>erGrouping() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::text::erGrouping </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &gt; </td>
          <td class="paramname"><em>regions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp; </td>
          <td class="paramname"><em>groups_rects</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>method</em> = <code><a class="el" href="../../da/d56/group__text__detect.html#ggac71e4c8addcf8f6dabc9b6da401d5eb9a27297f8181275dff67535f204e4bdd62">ERGROUPING_ORIENTATION_HORIZ</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>minProbablity</em> = <code>(float) 0.5</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>groups_rects</td><td>=</td><td>cv.text.erGrouping(</td><td class="paramname">image, channel, regions[, method[, filename[, minProbablity]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
</div>
</div>
<a id="ga8a0e90a70de747b993be34ed7933ef53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8a0e90a70de747b993be34ed7933ef53">◆ </a></span>loadClassifierNM1()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a>&gt; cv::text::loadClassifierNM1 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.loadClassifierNM1(</td><td class="paramname">filename</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Allow to implicitly load the default classifier when creating an <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html" title="Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm ...">ERFilter</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. trained_classifierNM1.xml)</td></tr>
  </table>
  </dd>
</dl>
<p>returns a pointer to <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html" title="Callback with the classifier is made a class. ">ERFilter::Callback</a>. </p>
</div>
</div>
<a id="ga7a7555ebd0850765e1cb09d322235cf8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7a7555ebd0850765e1cb09d322235cf8">◆ </a></span>loadClassifierNM2()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html">ERFilter::Callback</a>&gt; cv::text::loadClassifierNM2 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.loadClassifierNM2(</td><td class="paramname">filename</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Allow to implicitly load the default classifier when creating an <a class="el" href="../../da/def/classcv_1_1text_1_1ERFilter.html" title="Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm ...">ERFilter</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. trained_classifierNM2.xml)</td></tr>
  </table>
  </dd>
</dl>
<p>returns a pointer to <a class="el" href="../../d0/d4f/classcv_1_1text_1_1ERFilter_1_1Callback.html" title="Callback with the classifier is made a class. ">ERFilter::Callback</a>. </p>
</div>
</div>
<a id="gaa40b490a66fa21eb1d89163202f69c86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa40b490a66fa21eb1d89163202f69c86">◆ </a></span>MSERsToERStats()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::text::MSERsToERStats </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>contours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html">ERStat</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>regions</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/d05/erfilter_8hpp.html">opencv2/text/erfilter.hpp</a>&gt;</code></p>
<p>Converts <a class="el" href="../../d3/d28/classcv_1_1MSER.html" title="Maximally stable extremal region extractor. ">MSER</a> contours (vector&lt;Point&gt;) to <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html" title="The ERStat structure represents a class-specific Extremal Region (ER). ">ERStat</a> regions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Source image CV_8UC1 from which the MSERs where extracted.</td></tr>
    <tr><td class="paramname">contours</td><td>Input vector with all the contours (vector&lt;Point&gt;).</td></tr>
    <tr><td class="paramname">regions</td><td>Output where the <a class="el" href="../../db/d20/structcv_1_1text_1_1ERStat.html" title="The ERStat structure represents a class-specific Extremal Region (ER). ">ERStat</a> regions are stored.</td></tr>
  </table>
  </dd>
</dl>
<p>It takes as input the contours provided by the OpenCV <a class="el" href="../../d3/d28/classcv_1_1MSER.html" title="Maximally stable extremal region extractor. ">MSER</a> feature detector and returns as output two vectors of ERStats. This is because MSER() output contains both MSER+ and MSER- regions in a single vector&lt;Point&gt;, the function separates them in two different vectors (this is as if the ERStats where extracted from two different channels).</p>
<p>An example of MSERsToERStats in use can be found in the text detection webcam_demo: <a href="https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/webcam_demo.cpp">https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/webcam_demo.cpp</a> </p>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
